package com.bot.adms.model.vo;

import com.bot.adms.model.entity.AdInfo;

import java.util.Date;
import java.util.List;

/**
 * 广告信息视图模型
 */
public class AdInfoVo {
    public AdInfoVo(AdInfo adInfo) {
        this.id = adInfo.getId();
        this.adTitle = adInfo.getAdTitle();
        this.spScType = adInfo.getSpScType();
        this.layStyle = adInfo.getLayStyle();
        this.status = adInfo.getStatus();
        this.createTime = adInfo.getCreateTime();
    }

    public AdInfoVo() {
    }
    /**
     * 广告id
     */
    private Long id;
    /**
     * 广告标题
     */
    private String adTitle;
    /**
     * 分屏类型（0：单屏、1：双屏、2：三屏）
     */
    private Integer spScType;
    private String spScTypeStr;

    /**
     * 布局样式（0：全屏、1：上一下一、2：左一右一、
     * 3：上一下二、4：左一右二、5：上二下一、6：左二右一）
     */
    private Integer layStyle;
    private String layStyleStr;

    /**
     * 广告状态（0未发布/1已发布）
     */
    private Integer status;
    private String statusStr;

    public String getSpScTypeStr() {
        return spScTypeStr;
    }

    public void setSpScTypeStr(String spScTypeStr) {
        this.spScTypeStr = spScTypeStr;
    }

    public String getLayStyleStr() {
        return layStyleStr;
    }

    public void setLayStyleStr(String layStyleStr) {
        this.layStyleStr = layStyleStr;
    }

    public String getStatusStr() {
        return statusStr;
    }

    public void setStatusStr(String statusStr) {
        this.statusStr = statusStr;
    }

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 一条广告信息对应多条广告分屏明细
     */
    private List<AdSpScDetailVo> adSpScDetailVoList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAdTitle() {
        return adTitle;
    }

    public void setAdTitle(String adTitle) {
        this.adTitle = adTitle;
    }

    public Integer getSpScType() {
        return spScType;
    }

    public void setSpScType(Integer spScType) {
        this.spScType = spScType;
    }

    public Integer getLayStyle() {
        return layStyle;
    }

    public void setLayStyle(Integer layStyle) {
        this.layStyle = layStyle;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public List<AdSpScDetailVo> getAdSpScDetailVoList() {
        return adSpScDetailVoList;
    }

    public void setAdSpScDetailVoList(List<AdSpScDetailVo> adSpScDetailVoList) {
        this.adSpScDetailVoList = adSpScDetailVoList;
    }
}
